import React, { FC,
    // useState,
    useReducer,
 } from 'react';

 type StateType = { count: number }
 type ActionType = { type: string }
 const initailS

const CountReducer: FC = ()=>{
    const [count, setCount] = useState(100)

    return <>
        <span>count:{count}</span>
        <button onClick={()=> setCount(count+1)}>+</button>
        <button onClick={()=> setCount(count-1)}>-</button>
    </>
}

export default CountReducer
